package com.tutorial.demo.ano;

import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        Field[] fs = Person.class.getDeclaredFields();
        List<Field> fields = Arrays.asList(fs);
        fields.stream().forEach(field -> {
            FisrtAno annotation = field.getAnnotation(FisrtAno.class);
            String num = annotation.num();
            String value = annotation.value();
            System.out.println(value + "    "+ num);
        });
    }
}
